﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public class Lilie : Flower
    {
        private LilieSort _sort;

        public Lilie() { }

        public Lilie(string name, int price,FlowerColor color, LilieSort sort): base(name, price, color)
        {
            _sort = sort;
        }

        public LilieSort Sort
        {
            get { return _sort; }
            set { _sort = value; }
        }

        public override string ToString()
        {
            return base.ToString() + " сорт:" + _sort;
        }
    }
}
